<?php
require_once 'library/config.php';
require_once 'library/category-functions.php';
require_once 'library/product-functions.php';
require_once 'library/cart-functions.php';
require_once 'admin/library/functions.php';
$_SESSION['shop_return_url'] = $_SERVER['REQUEST_URI'];
$catId  = (isset($_GET['c']) && $_GET['c'] != '1') ? $_GET['c'] : 0;
$pdId   = (isset($_GET['p']) && $_GET['p'] != '') ? $_GET['p'] : 0;
?>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="javascript/coolclock.js"></script>
<script type="text/javascript" src="javascript/moreskins.js"></script>
 
<script type= "text/jscript">
        function ClickToURL()
        {
                 var http=document.formURL.SltWebkhoa.value;
                    if (http!="")
                     window.open(document.formURL.SltWebkhoa.value);
        }
</script>

</head>
<body onload="CoolClock.findAndCreateClocks()">

	<div id="wrapper">
	    <div id="header" >	    
	        <a href="http://www.trankhang.com/" target="_blank"><img src="images/LogoGif.gif" /></a>
	   </div>
	    <!--marquee1-->	  
	    
	    <div id="marquee1">
	        <marquee onmouseover="this.stop();" onmouseout="this.start();" scrollamount="3" scrolldelay="50" direction="left">
	            <a style="color: #000080;" href="http://www.trankhang.com"  >>>Welcome to Tran Khang Shopping Electronic and Telecomunication. We will bring to you the best product and service"....</a>&nbsp;</marquee>
	     </div>
	        <!-- end #header -->
        <div id="menu">
		<ul>
		<li>
		    <li><a href="index.php">***Home</a></li>			
			<li><a href="#">product</a></li>
			<li><a href="#">warranty</a></li>			
			<li><a href="#">advice </a></li>
			<li><a href="#">market</a></li>				
			<li><a href="contact/contact_email.php">contact</a></li>	
			<li><a href="#">order</a></li>	
			<li><a href="#">Company***</a></li>		
			
		</ul>
	</div>
	<div class="title">
		<?php 
				require_once 'search/search.php';
		?>
	</div>
	<!-- end #menu -->
	<div id="page">			
	    <!--leftside bar-->	 	       			
				<?php require_once 'include/leftside.php';?>
        <!-- -end left side bar -->     
		<!-- right side bar -->
		<?php require_once 'include/rightside.php';?>    
       <!-- -end right side bar -->
       <!-- content -->	
	<div id="content" >
         <!--Introduction-->
            <div class="title bground" style="text-align: center">
             List Category</div>             
              <?php 
             require_once 'include/product_promo.php';
             ?>
         <div class="title bground" style="text-align: center">
             <strong>Promotion product</strong></div>
             <?php
             
						if ($pdId) 
												require_once 'include/productDetail.php';
				 else 
											require_once 'include/product_promo.php';
				
				?>  				
				
			
          					
		</div>
		</div>
		 
</div>    

    <!-- footer -->
     <?php require_once 'include/bottomside.php';?>
    <!-- end #footer -->	
    
</body>
</html>
